package com.imooc.lifecycle;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class BeanLifeCycle implements InitializingBean,DisposableBean {
	
	public void start(){
		System.out.println("Bean start.");
	}
	
	public void stop(){
		System.out.println("Bean stop.");
	}

	public void destroy() throws Exception {
		System.out.println("destroy..");
	}

	public void afterPropertiesSet() throws Exception {
		System.out.println("afterPropertiesSet...");
	}
	
	
}



















